let http = require("http");
let server = http.createServer((req,res) => {
    res.setHeader("Content-Type", "text/html; charset=utf-8")
    if(req.url == '/' || req.url == "/index/index"){
        res.end("首页")
    }else if(req.url == '/user/login'){
        res.end("登录")
    }else if(req.url == '/user/reg'){
        res.end("注册")
    }else if(req.url == '/user/product'){
        res.end("产品列表")
    }else if(req.url == '/user/goods'){
        res.end("商品列表")
    }else{
        res.end("404")
    }
})
server.listen(81,'ycx.com',() => {
    console.log('1111111')
});